package controllers;

import java.awt.event.InputEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import views.GameView;

public class MouseController implements MouseListener{

	GameView gameView;
	
	public MouseController(GameView gameView) {
		this.gameView = gameView;
	}

	@Override
	public void mouseClicked(MouseEvent e) {
		switch(e.getModifiers()){
		case InputEvent.BUTTON1_MASK:	
			int x = e.getX();
			int y = e.getY();
			gameView.redrawMap(x, y);
			break;
		default:
			break;
		}
		
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

}
